<?php
/**
 * Infectamic: browser game (http://infectamic.goldzoneweb.info)
 * Copyright 2011, Loic Chardonnet
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 */
?>
<!doctype html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
    <head>
        <!-- Basic Page Needs
        ================================================== -->
        <?php echo $this->Html->charset('utf-8'); ?>

        <title>Infectamic - <?php echo $title_for_layout; ?></title>
        <meta name="Description" content="Online RPG by browser" />
        <meta name="Keywords" content="Online RPG, Browser Game, Open Source, Indie" />
        <meta name="Language" content="en" />
        <meta name="robots" content="index, follow, all" />
        <meta name="Author" content="Loic Chardonnet" />

        <!--[if lt IE 9]>
            <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->

        <!-- Mobile Specific Metas
        ================================================== -->
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />

        <!-- CSS
        ================================================== -->
        <?php echo $this->Html->css(array(
            'base',
            'skeleton',
            'layout',
            'main',
            'table',
            'header',
            'content',
            'footer',
            'cake-sql-log',
            'cake-debug',
            'cake-paging',
            'definition-list',
            'forms',
            'form-errors',
            'notices-and-errors',
            'buttons'
        )); ?>

        
        <!-- Favicons
        ================================================== -->
        <link rel="shortcut icon" href="/favicon.ico" />
	<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
	<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png" />
	<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png" />

    </head>
    <body>
        <!-- Header
        ================================================== -->
        <div id="header" class="container">
            <div id="logo" class="two columns">
                <?php echo $this->Html->image('logo.png', array('alt' => 'Logo')); ?>

            </div>

            <div id="title" class="five columns">
                <h1><?php echo $this->Html->link('Infectamic', '/'); ?></h1>
                <h2><?php echo __('Infect them all!'); ?></h2>
            </div>

            <div  class="nine columns">
                <h1><?php echo $title_for_layout; ?></h1>
            </div>
        </div>

        <!-- Content
        ================================================== -->
        <div id="content" class="container">
            <div class="sixteen columns">
                <?php echo $this->Session->flash(); ?>

            </div>

            <?php echo $content_for_layout; ?>
        </div>

        <!-- Footer
        ================================================== -->
        <div id="footer" class="container">
            <div class="eight columns">
                <nav>
                    <h2><?php echo __('Powered by'); ?></h2>

                    <ul>
                        <li><?php echo $this->Html->link('GoldZone Web', 'http://www.goldzoneweb.info/', array('title' => __('Web hosting'))); ?></li>
                        <li><?php echo $this->Html->link('CakePHP', 'http://cakephp.org/', array('title' => __('PHP framework'))); ?></li>
                        <li><?php echo $this->Html->link('Skeleton', 'http://www.getskeleton.com/', array('title' => __('Web boilerplate'))); ?></li>
                    </ul>
                </nav>
            </div>

            <div class="eight columns">
                <nav>
                    <h2><?php echo __('About'); ?></h2>

                    <ul>
                        <li><?php echo $this->Html->link('@epiloic', 'https://twitter.com/#!/epiloic', array('title' => __('Author\'s Twitter account'))); ?></li>
                        <li><?php echo $this->Html->link('Google code', 'http://code.google.com/p/infectamic/', array('title' => __('Sources, documentation and issues'))); ?></li>
                        <li><?php echo $this->Html->link('MIT license', 'http://www.opensource.org/licenses/mit-license.php', array('title' => __('Open source License'))); ?></li>
                    </ul>
                </nav>
            </div>
        </div>
        <?php echo $this->element('sql_dump'); ?>

        <!-- JS
        ================================================== -->
        <?php echo $this->Html->script('http://code.jquery.com/jquery-1.6.4.min.js'); ?>

        <?php echo $this->Html->script('/js/tabs.js'); ?>

        <?php echo $scripts_for_layout; ?>

    </body>
</html>
